function roleAdd() {
    let da={
        typeCode:$.trim($("#typeCode").val()),
        typeName:$.trim($("#typeName").val()),
        code:$.trim($("#code").val()),
    }
    let data=myAjax("/role/roleAdd",da,"post");
    console.log(data)
        data=data.data;
        if (data==1){
            alert("添加成功");
            $('#middle-reght').load('role/role.html');
        }else if(data==0){
            alert("添加失败");
        }else if(data==2){
            alert("用户code重复");
        }else if(data==3){
            alert("角色名重复");
        }else if(data==4){
            alert("角色code重复");
        }
}